import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import store from './store'
import config from './config/index.js'
import * as navTo from './utils/routerTo.js'
import * as Toast from './utils/Toast.js'
import * as utils from './utils/common.js'
import formItem from "@/components/lt-formItem/index.vue";
// 引入组件
Vue.use(uView);

// 全局处理静态资源地址
Vue.prototype.$imgUrl = function (src){
  // return 'http://127.0.0.1:3000/' + src
  // return 'http://172.16.185.73:3000/' + src
  return 'https://int-dmoc-assistant-1301141550.cos-website.ap-guangzhou.myqcloud.com/' + src
}

const imgBaseUrl = 'https://int-dmoc-assistant-1301141550.cos-website.ap-guangzhou.myqcloud.com/';
Vue.prototype.$imgBaseUrl = imgBaseUrl;


// 全局组件注册

Vue.component("formItem", formItem);

//引入vuex
Vue.prototype.$store = store

Vue.prototype.$navTo = navTo

Vue.prototype.$Toast = Toast

Vue.prototype.$utils = utils



Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
})
app.$mount()
